import { http } from "@/utils/http";
export function getWarehousePageList(data: Partial<ShopWarehousePageRequest & PageRequest>) {
  return http.post<MResponse<Array<ShopWarehouseVo>>>("/product/warehouse/getWarehousePageList", { data });
}

export function addWarehouse(data: ShopWarehouseAddRequest) {
  return http.post<MResponse>("/product/warehouse/addWarehouse", { data });
}

export function updateWarehouse(data: ShopWarehouseUpdateRequest) {
  return http.post<MResponse>("/product/warehouse/updateWarehouse", { data });
}

export function delWarehouse(data: ShopWarehouseDelRequest) {
  return http.post<MResponse>("/product/warehouse/delWarehouse", { data });
}
export function getWarehouseSelect() {
  return http.post<MResponse<Array<SelectVo>>>("/product/warehouse/getWarehouseSelect");
}
